export default class Button {
    constructor() {
      this.plugin = {
        name: "最强排行",
        dsc: "最强排行",
        priority: 100,
        rule: [
          {
            reg: '^#(星铁)?最强排行$',
            fnc: 'buttonCenter'
          },
          {
            reg: '^#(星铁)?最高分排行$',
            fnc: 'buttonCenter'
          }
        ]
      }
    }
    async buttonCenter(e){
      const game = (e.game === 'sr' || e.isSr) ? '星铁' : ''
      const list = [
        [
        { label: '最强排行', callback: `/${game}最强排行` },
        { label: '最高分排行', callback: `/${game}最高分排行` },
        ],[
        { label: '更新面板', callback: `/${game}更新面板` },
        { label: '极限面板', callback: `/${game}极限面板`, }
        ]
      ]
      return Bot.Button(list)
    }
  }